import request from '@/utils/request.js'

export const getSessionList = () => {
  return request.get('msgsession/getMsgSessionList')
}

export const createMsgSession = (friendId) => {
  return request.get('msgsession/createMsgSession', {
    params: {
      friendId
    }
  })
}

export const visitMsgSession = (sessionId) => {
  return request.get('msgsession/visitSession', {
    params: {
      sessionId
    }
  })
}

export const getMsgList = (sessionId) => {
  return request.get('message/getMessage', {
    params: {
      sessionId
    }
  })
}
